package strategy.service;

import strategy.model.Dog;

public class DogCompare implements Compartor<Dog> {
    @Override
    public int compare(Dog t1, Dog t2) {
        if (t1.getFood()>t2.getFood()){
            return 1;
        }else if (t1.getFood()<t2.getFood()){
            return -1;
        }else {
            return 0;
        }
    }
}
